<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>goback</title>
</head>
<body>

<div onclick="goBack()">回退到go&back&forward页面</div>
<div onclick="location.reload()">reload页面</div>
<script type="text/javascript">
    function goBack(){
        // 退回到上一个页面
        history.back() ;
    }
</script>

</body>
</html>